@import "../../variables.scss";
@import "../../reset.scss";
$animation1Height: 500px;
$animation2Height: 375px;
$animation3Height: 248px;
$animation4Height: 570px;
$animation5Height: 460px;
@keyframes fallingStar1 {
  0% {
    transform: translate3d(0, -100%, 0);
    opacity: 1;
  }
  100% {
    transform: translate3d(0, $animation1Height, 0);
    opacity: 0;
  }
}

@keyframes fallingStar2 {
  0% {
    transform: translate3d(0, -100%, 0);
    opacity: 1;
  }
  100% {
    transform: translate3d(0, $animation2Height, 0);
    opacity: 0;
  }
}

@keyframes fallingStar3 {
  0% {
    transform: translate3d(0, -100%, 0);
    opacity: 1;
  }
  100% {
    transform: translate3d(0, $animation3Height, 0);
    opacity: 0;
  }
}

@keyframes fallingStar4 {
  0% {
    transform: translate3d(0, -100%, 0);
    opacity: 1;
  }
  100% {
    transform: translate3d(0, $animation4Height, 0);
    opacity: 0;
  }
}

@keyframes fallingStar5 {
  0% {
    transform: translate3d(0, -100%, 0);
    opacity: 1;
  }
  100% {
    transform: translate3d(0, $animation5Height, 0);
    opacity: 0;
  }
}

.home-page {
  position: relative;
  width: 100%;
  .particles-wrap{
    background-image: linear-gradient(to bottom, #243949 0%, #517fa4 100%);
    position: absolute;
    height: 720px !important;
    width: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
  }
  .top-section {
    position: relative;
    height: 720px;
    .animation {
      position: absolute;
      top: 0;
      border-right: 1px solid rgba(255, 255, 255, 0.3);
      transform: scaleX(0.5);
      &::before {
        content: "";
        height: 16px;
        opacity: 1;
        border-right: 4px solid #fff;
        position: absolute;
        left: -2px;
        transform: translate3d(0, -100%, 0);
      }
      // &1 {
      //   left: 15%;
      //   height: $animation1Height;
      //   &::before {
      //     animation: fallingStar1 1.3s infinite ease-in-out;
      //   }
      // }
      // &2 {
      //   left: 35%;
      //   height: $animation2Height;
      //   &::before {
      //     animation: fallingStar2 1.5s infinite ease-in-out;
      //   }
      // }
      // &3 {
      //   left: 52%;
      //   height: $animation3Height;
      //   &::before {
      //     animation: fallingStar3 2s infinite ease-in-out;
      //   }
      // }
      // &4 {
      //   left: 65%;
      //   height: $animation4Height;
      //   &::before {
      //     animation: fallingStar4 1.5s infinite ease-in-out;
      //   }
      // }
      // &5 {
      //   left: 85%;
      //   height: $animation5Height;
      //   &::before {
      //     animation: fallingStar5 1.3s infinite ease-in-out;
      //   }
      // }
    }
    .home-carousel {
      position: absolute;
      left: 0;
      top: 50%;
      transform: translateY(-50%);
      box-sizing: border-box;
      width: 100%;
      display: flex;
      justify-content: center;
      padding: 0 50px;
    }
    .home-carousel-wrap{
      display: flex;
      flex-wrap: wrap;
    }
    .vertical-middle {
      background: #2F4155;
      opacity: 0.6;
      text-align: center;
      margin-top: 20px;
      margin-right: 30px;
      cursor: pointer;
      width: 320px;
      padding-bottom: 40px;
    }
    .vertical-selected {
      border: 1px solid #fff;
      opacity: 1;
      background: #2F4155;
      position: relative;
      overflow: hidden;
      /* &::before{
        position: absolute;
        content: "";
        width: 50px;
        height: 50px;
        background: #fff;
        transform: rotate(-45deg);
        right: -25px;
        bottom: -25px;
        display: block;
      } */
    }
    .product-name {
      position: relative;
      display: inline-block;
      margin-top: 50px;
      img{
        width: 150px;
        height: 60px;
        display: block;
      }
    }
    .product-desc {
      opacity: 0.6;
      font-family: Avenir-Medium;
      font-size: 24px;
      color: #fff;
      text-align: center;
      margin: 30px auto 0;
      max-width: 730px;
    }
    .button-area {
      text-align: center;
      margin-top: 50px;
      padding: 0 10px;
      display: flex;
      justify-content: space-between;
      flex-wrap: wrap;
      .button {
        font-size: 14px;
        min-width: 90px;
        height: 36px;
        line-height: 36px;
        cursor: pointer;
        margin-top: 10px;
      }
      .button:last-child {
        margin-right: 0;
      }
    }
  }
  .introduction-section {
    background: #f9fafa;
    .introduction-body {
      max-width: $contentWidth;
      box-sizing: border-box;
      margin: 0 auto;
      min-height: 640px;
      padding: 0 40px;
      position: relative;
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      &::before {
        content: "";
        position: absolute;
        top: 0;
        left: 40px;
        height: 165px;
        opacity: 0.3;
        border-right: 1px solid #666;
      }
      &::after {
        content: "";
        position: absolute;
        left: 39px;
        top: 165px;
        width: 3px;
        height: 17px;
        background-image: linear-gradient( 0deg, $startColor 0%, $intermediateColor 51%, $endColor 100%);
      }
      .introduction {
        display: inline-block;
        width: calc(100% - 726px);
        min-width: 300px;
        max-width: 590px;
        h3 {
          font-family: Avenir-Heavy;
          font-size: 36px;
          color: #333;
          margin-bottom: 40px;
          word-break: break-word;
        }
        p {
          opacity: 0.56;
          font-family: Avenir-Medium;
          font-size: 18px;
          color: #999;
        }
      }
      img {
        width: 562px;
        margin: 0 82px;
        max-width: 100%;
        box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.05);
      }
      @media screen and (max-width: 1106px) {
        .introduction {
          display: inline-block;
          width: 100%;
          max-width: 100%;
        }
        img {
          margin: 0;
        }
      }
    }
  }
  .feature-section {
    box-sizing: border-box;
    max-width: $contentWidth;
    margin: 0 auto;
    position: relative;
    padding: 80px 40px 40px;
    &::before {
      content: "";
      position: absolute;
      top: 0;
      left: 50%;
      transform: translateX(-50%);
      margin: 0 auto;
      height: 83px;
      opacity: 0.3;
      border-right: 1px solid #666;
    }
    &::after {
      content: "";
      position: absolute;
      top: 66px;
      left: 50%;
      transform: translateX(-50%);
      width: 3px;
      height: 17px;
      background-image: linear-gradient( 0deg, $startColor 0%, $intermediateColor 51%, $endColor 100%);
    }
    h3 {
      font-family: Avenir-Heavy;
      font-size: 36px;
      color: #333;
      text-align: center;
      margin: 0 0 40px;
    }
    ul {
      list-style: none;
      padding: 0;
      margin: 0;
      li {
        vertical-align: top;
        display: inline-block;
        margin-bottom: 40px;
        width: 50%;
        img {
          vertical-align: top;
          width: 60px;
          height: 60px;
          margin-right: 20px;
        }
        div {
          display: inline-block;
          width: 80%;
          h4 {
            font-family: Avenir-Heavy;
            font-size: 20px;
            color: #333;
            margin-top: 10px;
          }
          p {
            font-family: Avenir-Medium;
            font-size: 14px;
            line-height: 20px;
            color: #999;
          }
        }
      }
      @media screen and (max-width: 768px) {
        li {
          width: 100%;
        }
      }
    }
  }
  .start-section {
    background-image: linear-gradient( 0deg, $startColor 0%, $intermediateColor 51%, $endColor 100%);
    .start-body {
      max-width: $contentWidth;
      margin: 0 auto;
      box-sizing: border-box;
      height: 50px;
      padding: 35px 40px;
      position: relative;
      &::before {
        content: "";
        position: absolute;
        top: 0;
        left: 20px;
        height: 100%;
        opacity: 0.3;
        border-right: 1px solid #fff;
      }
      &::after {
        content: "";
        position: absolute;
        left: 19px;
        top: 48px;
        width: 3px;
        height: 17px;
        background: #fff;
      }
      .left-part {
        display: inline-block;
        width: 50%;
        vertical-align: top;
        h3 {
          font-family: Avenir-Heavy;
          font-size: 36px;
          color: #fff;
          margin: 0;
        }
        p {
          opacity: 0.8;
          font-family: Avenir-Medium;
          font-size: 18px;
          color: #fff;
          line-height: 24px;
          margin: 6px 0 12px;
        }
        a {
          font-family: Avenir-Heavy;
          font-size: 14px;
          color: $brandColor;
          text-align: center;
          display: inline-block;
          width: 140px;
          height: 48px;
          line-height: 48px;
          background: #fff;
          border-radius: 4px;
        }
      }
      .right-part {
        display: inline-block;
        width: 50%;
        font-size: 0;
        margin-top: 15px;
        img {
          margin-left: 5%;
          width: 500px;
        }
      }
      @media screen and (max-width: 1050px) {
        & {
          height: 474px;
        }
        .left-part {
          width: 100%;
        }
        .right-part {
          width: 100%;
          margin-top: 38px;
          img {
            max-width: 100%;
            margin-left: 0;
          }
        }
      }
    }
  }
  .users-section {
    box-sizing: border-box;
    max-width: $contentWidth;
    border-top: 1px solid #eee;
    margin: 0 auto;
    padding: 80px 40px 40px;
    position: relative;
    &::before {
      content: "";
      position: absolute;
      top: 0;
      left: 50%;
      transform: translateX(-50%);
      margin: 0 auto;
      height: 83px;
      opacity: 0.3;
      border-right: 1px solid #666;
    }
    &::after {
      content: "";
      position: absolute;
      top: 66px;
      left: 50%;
      transform: translateX(-50%);
      width: 3px;
      height: 17px;
      background-image: linear-gradient( 0deg, $startColor 0%, $intermediateColor 51%, $endColor 100%);
    }
    h3 {
      font-family: Avenir-Heavy;
      font-size: 36px;
      color: #333;
      text-align: center;
      margin-bottom: 40px;
    }
    p {
      font-family: Avenir-Medium;
      font-size: 14px;
      color: #666;
      text-align: center;
      margin: 0 0 40px;
      a {
        color: #1e6bb8;
        text-decoration: none;
      }
    }
    .users {
      // display: flex;
      // flex-wrap: wrap;
      // justify-content: space-between;
      display: inline-block;
      text-align: center;
      img {
        margin-right: 10px;
        width: 140px;
        height: 80px;
        margin-bottom: 40px;
      }
    }
  }
  @media screen and (max-width: $mobileWidth) {
    .introduction-section {
      padding: 0 20px;
      &::before {
        left: 20px;
      }
      &::after {
        left: 19px;
      }
    }
    .feature-section,
    .users-section {
      padding-left: 20px;
      padding-right: 20px;
    }
  }
}